#import "dfhgwhruebvhrheycreepvacation.h"
@interface dfhgwhruebvhrheycreepvacation ()
@property (weak, nonatomic) IBOutlet UIButton *placeholderBtn;
@property (weak, nonatomic) IBOutlet UILabel *tipsTextLabel;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@end
@implementation dfhgwhruebvhrheycreepvacation {
	void(^_callback)(void);
}
- (void)setIconName:(NSString *)iconName {
	UIImage *image = [UIImage imageNamed:iconName];
	self.icon.image = image;
	[self.icon mas_updateConstraints:^(MASConstraintMaker *make) {
		make.size.mas_equalTo(CGSizeMake(PPP_SCREEN_WIDTH, image.size.height*PPP_SCREEN_WIDTH/image.size.width));
	}];
}
- (void)setPlaceholder:(NSString *)placeholder {
	self.tipsTextLabel.text = placeholder;
}
- (void)placeholder:(NSString *)title andAction:(void(^)(void))callback {
	_callback = callback;
	[self.placeholderBtn setTitle:title forState:UIControlStateNormal];
}
- (IBAction)placeHolderBtnAction {
	if (_callback) {
		_callback();
	}
}
@end
